﻿// AtlObject.cpp: CAtlObject 的实现

#include "pch.h"
#include "AtlObject.h"
#include <stdio.h>
#include <tchar.h>


// CAtlObject

STDMETHODIMP CAtlObject::Test()
{
    CComObject<CAtlObject>* Object;
    CComObject<CAtlObject>::CreateInstance(&Object);

    CComObjectCached<CAtlObject>* Object2;
    CComObjectCached<CAtlObject>::CreateInstance(&Object2);

    CComObjectGlobal<CAtlObject> Object3;

    CComObjectNoLock<CAtlObject>* Object4 = new CComObjectNoLock<CAtlObject>;

    CComObjectStack<CAtlObject> Object5;

    CComObjectStackEx<CAtlObject> Object6;

    return S_OK;
}
